package com.youngjun.gateway.controller;

import com.youngjun.gateway.service.RouteService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/route")
@Api(value = "路由接口",tags="路由接口")
public class RouteController {

    @Autowired
    private RouteService routeService;

        @RequestMapping(value = "/refresh",method = RequestMethod.GET)
    @ApiOperation(value = "刷新路由", notes = "刷新路由",httpMethod = "GET")
    public void refresh() {

    }

    @RequestMapping(value = "/add",method = RequestMethod.POST)
    @ApiOperation(value = "新增路由", notes = "新增路由",httpMethod = "POST")
    public void add() {

    }


    @RequestMapping(value = "/update",method = RequestMethod.PUT)
    @ApiOperation(value = "更新路由", notes = "更新路由",httpMethod = "PUT")
    public void update() {

    }

    @RequestMapping(value = "/delete",method = RequestMethod.DELETE)
    @ApiOperation(value = "删除路由", notes = "删除路由",httpMethod = "DELETE")
    public void delete(@RequestParam String id) {

    }

}
